package com.zr.service.base.impl;

import com.zr.dao.base.BaseCityDao;
import com.zr.service.base.BaseCityService;
import com.zr.vo.base.BaseCity;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BaseCityServiceImpl implements BaseCityService {

    @Resource
    private BaseCityDao baseCityDao;

    /**
     * 查询城市列表
     * @return
     */
    @Override
    public List<BaseCity> listAll() {
        List<BaseCity> baseCityList = baseCityDao.listAll();
        return baseCityList;
    }

    /**
     * @author wanglu
     * 查询所有二级城市
     * @return
     */
    @Override
    public List<BaseCity> list() {
        List<BaseCity> baseCityList = baseCityDao.list();
        return baseCityList;
    }



}
